﻿namespace Digitalmes.Application.Sys.Orgs.Commands;

internal sealed class CreateOrgCommandValidator : AbstractValidator<CreateOrgCommand>
{
    public CreateOrgCommandValidator()
    {
        RuleFor(v => v.Org.Code).MaximumLength(32).NotEmpty();
        RuleFor(v => v.Org.Name).MaximumLength(32).NotEmpty();
    }
}
